#!/bin/sh

for dvi in `ls *.dvi` 
do
    dvips $dvi
done

for ps in `ls *.ps` 
do
    echo $ps
    ps2pdf $ps
done